package com.by.medical.controller;

import com.by.medical.bean.JobInfo;
import com.by.medical.common.AxiosResult;
import com.by.medical.mapper.JobInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/job")
public class JobInfoController {
    @Autowired
    private JobInfoMapper jobInfoMapper;
    @GetMapping("/query")
    public AxiosResult<List<JobInfo>> queryALLJobInfo(){
        return AxiosResult.success(jobInfoMapper.queryAllJobInfo());
    }
}
